<?php 
	header('Content-Type: application/xml');
	echo '<?xml version="1.0"?'; echo '>'; ?>

<rss version="2.0">
   <channel>
      <title>Maxsi Distribution - Users who have used Maxsi Distribution</title>
      <link>http://www.maxsi.dk/distribution/?action=showusers</link>
      <description>Maxsi Distribution - Users who have used Maxsi Distribution</description>
      <language>en-us</language>
      <pubDate>Sat, 23 Jun 2007 11:37:43 GMT</pubDate>
      <lastBuildDate>Sat, 23 Jun 2007 11:37:43 GMT</lastBuildDate>
      <generator>Maxsi Framework</generator>
      <managingEditor>sortie@maxsi.dk</managingEditor>
      <webMaster>sortie@maxsi.dk</webMaster>
<?php
		$register_slot = sql("SELECT * FROM distribution_register ORDER installed DESC LIMIT 0, 50");
		
		$counter=0;
		$lastproduct = '';
		do
		{
			if (strcmp($lastproduct,$sql_row[$register_slot]['product'])!=0)
			{
				$idcounter = 1;
				$lastproduct = $sql_row[$register_slot]['product'];
			}
			else
			{
				$idcounter+=1;
			}
			echo '      <item>
         <title>'.$sql_row[$register_slot]['product'].' '.md5($sql_row[$register_slot]['username']).'</title>
         <link>http://www.maxsi.dk/distribution/?action=showuser_hex&amp;account='.md5($sql_row[$register_slot]['username']).'</link>
         <description>'.$sql_row[$register_slot]['product'].' '.md5($sql_row[$register_slot]['username']).'</description>
         <pubDate>Sat, 23 Jun 2007 21:52:53 GMT</pubDate>
         <guid>'.$sql_row[$register_slot]['product'].' '.md5($sql_row[$register_slot]['username']).'</guid>
      </item>
';

			$counter+=1;
			
			sql_next($register_slot);
		}
		while ($counter<$sql_total[$register_slot]);
		
		clearslot($register_slot);
?>
   </channel>
</rss>